.class Lcom/zuiapps/library/ui/UpgradeDialog$2$1;
.super Ljava/lang/Object;
.source "UpgradeDialog.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/zuiapps/library/ui/UpgradeDialog$2;->onClick(Landroid/view/View;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/zuiapps/library/ui/UpgradeDialog$2;


# direct methods
.method constructor <init>(Lcom/zuiapps/library/ui/UpgradeDialog$2;)V
    .registers 2
    .param p1, "this$1"    # Lcom/zuiapps/library/ui/UpgradeDialog$2;

    .prologue
    .line 89
    iput-object p1, p0, Lcom/zuiapps/library/ui/UpgradeDialog$2$1;->this$1:Lcom/zuiapps/library/ui/UpgradeDialog$2;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 8

    .prologue
    const/4 v6, 0x0

    .line 92
    iget-object v0, p0, Lcom/zuiapps/library/ui/UpgradeDialog$2$1;->this$1:Lcom/zuiapps/library/ui/UpgradeDialog$2;

    iget-object v0, v0, Lcom/zuiapps/library/ui/UpgradeDialog$2;->this$0:Lcom/zuiapps/library/ui/UpgradeDialog;

    invoke-virtual {v0}, Lcom/zuiapps/library/ui/UpgradeDialog;->finish()V

    .line 93
    iget-object v0, p0, Lcom/zuiapps/library/ui/UpgradeDialog$2$1;->this$1:Lcom/zuiapps/library/ui/UpgradeDialog$2;

    iget-object v0, v0, Lcom/zuiapps/library/ui/UpgradeDialog$2;->this$0:Lcom/zuiapps/library/ui/UpgradeDialog;

    invoke-virtual {v0}, Lcom/zuiapps/library/ui/UpgradeDialog;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    iget-object v1, p0, Lcom/zuiapps/library/ui/UpgradeDialog$2$1;->this$1:Lcom/zuiapps/library/ui/UpgradeDialog$2;

    iget-object v1, v1, Lcom/zuiapps/library/ui/UpgradeDialog$2;->this$0:Lcom/zuiapps/library/ui/UpgradeDialog;

    sget v2, Lcom/zuiapps/library/upgrade/R$string;->zuiapps_upgrade_sdk_prepare_str:I

    invoke-virtual {v1, v2}, Lcom/zuiapps/library/ui/UpgradeDialog;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v6}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 94
    iget-object v0, p0, Lcom/zuiapps/library/ui/UpgradeDialog$2$1;->this$1:Lcom/zuiapps/library/ui/UpgradeDialog$2;

    iget-object v0, v0, Lcom/zuiapps/library/ui/UpgradeDialog$2;->this$0:Lcom/zuiapps/library/ui/UpgradeDialog;

    invoke-virtual {v0}, Lcom/zuiapps/library/ui/UpgradeDialog;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/zuiapps/library/download/UpgradeAppDownloadManager;->getInstance(Landroid/content/Context;)Lcom/zuiapps/library/download/UpgradeAppDownloadManager;

    move-result-object v0

    iget-object v1, p0, Lcom/zuiapps/library/ui/UpgradeDialog$2$1;->this$1:Lcom/zuiapps/library/ui/UpgradeDialog$2;

    iget-object v1, v1, Lcom/zuiapps/library/ui/UpgradeDialog$2;->this$0:Lcom/zuiapps/library/ui/UpgradeDialog;

    # getter for: Lcom/zuiapps/library/ui/UpgradeDialog;->mModel:Lcom/zuiapps/library/model/UpgradeModel;
    invoke-static {v1}, Lcom/zuiapps/library/ui/UpgradeDialog;->access$000(Lcom/zuiapps/library/ui/UpgradeDialog;)Lcom/zuiapps/library/model/UpgradeModel;

    move-result-object v1

    iget-object v1, v1, Lcom/zuiapps/library/model/UpgradeModel;->apkUrl:Ljava/lang/String;

    iget-object v2, p0, Lcom/zuiapps/library/ui/UpgradeDialog$2$1;->this$1:Lcom/zuiapps/library/ui/UpgradeDialog$2;

    iget-object v2, v2, Lcom/zuiapps/library/ui/UpgradeDialog$2;->this$0:Lcom/zuiapps/library/ui/UpgradeDialog;

    sget v3, Lcom/zuiapps/library/upgrade/R$string;->zuiapps_upgrade_sdk_notification_str:I

    invoke-virtual {v2, v3}, Lcom/zuiapps/library/ui/UpgradeDialog;->getString(I)Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    iget-object v4, p0, Lcom/zuiapps/library/ui/UpgradeDialog$2$1;->this$1:Lcom/zuiapps/library/ui/UpgradeDialog$2;

    iget-object v4, v4, Lcom/zuiapps/library/ui/UpgradeDialog$2;->this$0:Lcom/zuiapps/library/ui/UpgradeDialog;

    iget-object v5, p0, Lcom/zuiapps/library/ui/UpgradeDialog$2$1;->this$1:Lcom/zuiapps/library/ui/UpgradeDialog$2;

    iget-object v5, v5, Lcom/zuiapps/library/ui/UpgradeDialog$2;->this$0:Lcom/zuiapps/library/ui/UpgradeDialog;

    invoke-virtual {v5}, Lcom/zuiapps/library/ui/UpgradeDialog;->getApplicationContext()Landroid/content/Context;

    move-result-object v5

    # invokes: Lcom/zuiapps/library/ui/UpgradeDialog;->getAppName(Landroid/content/Context;)Ljava/lang/String;
    invoke-static {v4, v5}, Lcom/zuiapps/library/ui/UpgradeDialog;->access$200(Lcom/zuiapps/library/ui/UpgradeDialog;Landroid/content/Context;)Ljava/lang/String;

    move-result-object v4

    aput-object v4, v3, v6

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lcom/zuiapps/library/download/UpgradeAppDownloadManager;->download(Ljava/lang/String;Ljava/lang/String;)J

    .line 95
    return-void
.end method
